﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Help.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.ControlPanel.Help" %>

<%@ Register TagPrefix="uc1" Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" %>

<!doctype html>
<html>
<head runat="server">
    <title>帮助信息管理</title>
    <meta http-equiv="Pragma" content="No-cach" />
    <%: Styles.Render("~/Content/Bootstrap/css") %>

    <%: Scripts.Render("~/Scripts/AdminBase") %>
    <script type="text/javascript">
        $(document).ready(function () {

        });
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <table id="NavigationPath">
            <tr>
                <td>管理导航：<a href="Help.aspx">帮助管理</a> &nbsp;| &nbsp;<a href="Help.aspx?Action=Add"> 添加帮助</a>
                </td>
            </tr>
        </table>
        <asp:Panel ID="Panel1" runat="server" Visible="False">
            <table cellspacing="0" cellpadding="0" width="100%" border="0">
                <tr class="HeaderStyle">
                    <td>添加帮助
                    </td>
                </tr>
                <tr>
                    <td class="border" height="23">
                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                            <tr>
                                <td align="right">
                                    <b>标题：</b>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTitle" runat="server" Width="336px"></asp:TextBox>
                                    &nbsp;&nbsp; <b>立即审核：</b><asp:CheckBox ID="cbkPass" runat="server"></asp:CheckBox>&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td valign="top" colspan="2">
                                    <WinnerCMS:CKEditorControl ID="CE_Content" runat="server" Height="300px"></WinnerCMS:CKEditorControl>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <p align="center">
                <asp:Button ID="btnOK" runat="server" Text="添加" OnClick="btnOK_Click" Cssclass="btn btn-default"></asp:Button>&nbsp;&nbsp;
            <asp:Button ID="btnEdit" runat="server" Visible="False" Text="修改" OnClick="btnEdit_Click"
                Cssclass="btn btn-default"></asp:Button><asp:Button ID="btnBack" runat="server" Text="返回" OnClick="btnBack_Click"
                    Cssclass="btn btn-default"></asp:Button>
            </p>
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" Width="99%">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                <ProgressTemplate>
                    <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                        OnRowCommand="GV_List_RowCommand" OnRowDeleting="GV_List_RowDeleting" OnRowDataBound="GV_List_RowDataBound" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
                        <Columns>
                            <asp:TemplateField HeaderText="选择">
                                <HeaderTemplate>
                                    <input onclick="javascript: SelectAll(this);" type="checkbox" /></HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="Title" HeaderText="帮助标题" />
                            <asp:BoundField DataField="Admin" HeaderText="添加人">
                                <ItemStyle HorizontalAlign="Center" Width="60px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CheckInDate" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}"
                                HeaderText="更新时间" HtmlEncode="False">
                                <ItemStyle HorizontalAlign="Center" Width="120px" />
                            </asp:BoundField>
                            <asp:ButtonField DataTextField="Pass" HeaderText="审核" Text="审核" CommandName="Pass">
                                <ItemStyle HorizontalAlign="Center" Width="60px" />
                            </asp:ButtonField>
                            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Help.aspx?Action=Edit&amp;ID={0}"
                                HeaderText="编辑" Text="编辑">
                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                            </asp:HyperLinkField>
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True">
                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                            </asp:CommandField>
                        </Columns>
                        <HeaderStyle CssClass="HeaderStyle" />
                    </asp:GridView>
                    <table style="width: 100%;">
                        <tr>
                            <td>&nbsp;
                            <asp:Button ID="DelSeletedID" runat="server" Text="删除选中" OnClick="DelSeletedID_Click"
                                Cssclass="btn btn-default"></asp:Button>
                            </td>
                        </tr>
                    </table>

                    <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging">
                    </WinnerCMS:PageNavigation>

                </ContentTemplate>
            </asp:UpdatePanel>
        </asp:Panel>
    </form>
</body>
</html>
